package cn.sjxy.doctorms.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class Doctor {
    private Integer doctorId;
    private String name;
    private String gender;
    private String phone;
    private String title;
	private Integer deptId;
    private String status;
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")  // 请求参数转换
    @JsonFormat(pattern = "yyyy-MM-dd")// 返回json数据时，将日期格式化成字符串
    private Date hireDate;

    // 多对一：所属科室（关联科室实体）
    private Department department;
}
